﻿<ui:FluentWindow x:Class="EduAssess.Views.MainWindow"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
                 DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=MainViewModel}"
                 mc:Ignorable="d"
                 ui:ResizeMode="NoResize"
                 Height="600" 
                 Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
            
        <ui:TitleBar Title="EduAssess Admin"
                     Height="30"
                     Grid.Row="0"/>
        
        <UniformGrid Grid.Row="1" Columns="10">
            <Button Content="Назад"
                    Margin="5"
                    FontSize="22"
                    Background="Transparent"
                    Command="{Binding GoBack}"/>
        </UniformGrid>
        
        <Frame Content="{Binding CurrentPage}"
               NavigationUIVisibility="Hidden"
               Margin="5"
               Grid.Row="2"/>
    </Grid>
</ui:FluentWindow>
